#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
void E(int* p1, int* p2,int nub) {
	for (int i = 0; i < nub; i++) {
		p1[i] ^= p2[i];
		p2[i] ^= p1[i];
		p1[i] ^= p2[i];
	}
}
int main() {

	int arr1[6] = { 1,2,3,4,5,6 };
	int arr2[6] = { 6,5,4,3,2,1 };
	int nub = sizeof(arr1) / sizeof(arr1 + 0);
	for (int i = 0; i < nub; i++) {
		printf("%d ", *(arr1 + i));
	}
	printf("\n");
	for (int i = 0; i < nub; i++) {
		printf("%d ", *(arr2 + i));
	}
	printf("\n");
	E(arr1, arr2,nub);
	for (int i = 0; i < nub; i++) {
		printf("%d ", *(arr1 + i));
	}
	printf("\n");
	for (int i = 0; i < nub; i++) {
		printf("%d ", *(arr2 + i));
	}

	return 0;
}